package com.Lubaichen.Wiki.service;

import com.Lubaichen.Wiki.Pojo.Test;
import com.Lubaichen.Wiki.mapper.TestMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Lubaichen
 * @date 2022年02月28日 22:18
 */
@Service
public class TestService {
    // @Resource :JDK自带的注解，可以取代@Autowired
    @Autowired
    private TestMapper testMapper;

    public List<Test> list() {
        return testMapper.list();
    }
}
